<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>

<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/<spring:theme code="stylesheet.wraper" />" />

<div class="wraper">
<div class="inner-menu">
    <div class="header">
        <span><spring:message code="docrepository.file.title.allFiles" /></span>
        <a href="${pageContext.request.contextPath}/user/files/edit" class="pull-right" title="<spring:message code="docrepository.file.action.addFile"/>"><i class="glyphicon glyphicon-plus"></i></a>
    </div>
    <a href="<c:url value="/user/files" />" class="item"><spring:message code="docrepository.file.title.userFiles" /></a>
    <a href="<c:url value="/user/files/favorite" />" class="item active"><spring:message code="docrepository.file.title.favoriteFiles" /></a>
</div>

<div class="content">
    <div class="header">
        <span><spring:message code="docrepository.file.title.favoriteFiles" /></span>
        <a href="" class="pull-right"><i class="glyphicon glyphicon-th-list" title="<spring:message code="docrepository.common.action.toggleViewType" />"></i></a>
    </div>
    <div class="viewlist horizontal">
        <c:forEach items="${userFavorites}" var="file">
            <a class="item thumbnail" title="${file.fileName}">
                <img data-src="holder.js/100%x180" src="" />
                <span class="name">${file.fileName}</span>
            </a>
        </c:forEach>
    </div>
</div>
</div>